<template>
   <view class="content">
     <view class="head" :style="{backgroundColor:color}">
       <uni-icons type="arrowleft" size="20"  class="icon" @click="goback"></uni-icons>
        <view class="heard_word">
          {{title}}
        </view>
     </view>
   </view>
</template>
<script>
  export default {
  	data() {
  		return {
  			
  		};
  	},
    methods:{
      goback(){
        uni.navigateBack()
      }
    },
    props:['title' ,'color']
  }
</script>
<style lang="scss" scoped>
  .content{
    // margin-top: calc( var(--status-bar-height));
    width: 100%;
    position: fixed;
     z-index: 999;
  }
  .head{
    position: relative;
    width: 100%;
    height: calc(88rpx + var(--status-bar-height));
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin: 0 !important ;
  }
  .heard_word{
    font-size: 36rpx;
    font-family: PingFangSC-Medium, PingFang SC;
    font-weight: 500;
    color: #333333;
    margin-bottom: 21rpx;
  }
  .icon{
    position: absolute;
    left: 40rpx;
    bottom: 25rpx;
  }
</style>

